SASL_SSL with OAUTHBEARER

For OAuth, replace the SCRAM properties with:

dataIntake.kafka.securityProtocol=SASL_SSL

dataIntake.kafka.saslMechanism=OAUTHBEARER

 

dataIntake.kafka.oauthClientId=${KAFKA_OAUTH_USERNAME}

dataIntake.kafka.oauthClientSecret=${KAFKA_OAUTH_PASSWORD}

dataIntake.kafka.oauthTokenEndpointUrl=https://<identity-host>/realms/<realm>/protocol/openid-connect/token

 

dataIntake.kafka.sslTrustStoreLocation=<path>/kafka.client.truststore.p12

dataIntake.kafka.sslTrustStorePassword=${KAFKA_SSL_TRUSTSTORE_PASSWORD}

dataIntake.kafka.sslTrustStoreType=PKCS12

The OAuth client must be permitted to obtain tokens using the client-credentials grant. The identity used as the Kafka principal must also have the topic and consumer-group ACLs described above.

If the Kafka client enforces an OAuth endpoint allowlist, add the token endpoint to the Cycle JVM options:

-Dorg.apache.kafka.sasl.oauthbearer.allowed.urls=https://<identity-host>/realms/<realm>/protocol/openid-connect/token